<template>
  <div id="bindSuccess">
    <div style="padding: 1rem 0.2rem; text-align: center;">
      <p class="text-gray">您已经成功绑定</p>
      <p style="margin: 0.5rem 0rem 0.8rem; font-size: 0.4rem;"><b>{{ phone }}</b></p>
      <x-button type="primary" action-type="button" @click.native="toHome">完成</x-button>
    </div>
  </div>
</template>
<script>
  export default{
    computed: {
      phone() {
          let phone = (this.$store.state.userInfo.phone).toString()
          phone = phone.substring(0, 3) + ' **** ' + phone.substring(7);
          return phone
      }
    },
    methods: {
      toHome() {
          this.$router.push('/')
      }
    }
  }
</script>
